//
//  NSDateFormatter+BLDateformmater.m
//  BLForeign
//
//  Created by gaoguangxiao on 2022/9/5.
//  Copyright © 2022 高广校. All rights reserved.
//

#import "NSDateFormatter+BLDateformmater.h"

@implementation NSDateFormatter (BLDateformmater)
+(id)dateFormatterWithFormat:(NSString *)s{
    NSDateFormatter *f = [[NSDateFormatter alloc]init];
    f.dateFormat = s;
//    f.timeZone = [NSTimeZone timeZoneForSecondsFromGMT:8];
    [f setLocale:[NSLocale localeWithLocaleIdentifier:@"zh_Hans_CN"]];
    f.timeZone = [NSTimeZone timeZoneWithName:@"Asia/Beijing"];
    return f;
}
@end
